﻿@using LogOnWithACSLibrary;
@model IEnumerable<HrdIdentityProvider>


@*Needed for Visual Studio Intellisense*@
@if (false)
{
    <script src="/Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script>
}

<script type="text/javascript">
    $(function () {
        $('#fb-ip').click(function () {
            window.location = $(this).attr("class");
        });
        // make buttons jqueryui buttons
        $("button").button();

        // add click behaviour
        $("button").click(function () {
            window.location = $(this).attr("id");
        });
    });
</script>

<div id="identity-provider-content">
    <h2>
        Sign in using one of the following Identity Providers
    </h2>
    <div id="identity-providers">
        @foreach (HrdIdentityProvider identityProvider in Model)
        {
            <div class="identity-provider">
                <a href="javascript:void(0)" id="fb-ip" class="@Html.Raw(identityProvider.LoginUrl)">@identityProvider.Name</a>
                @*<button id="@Html.Raw(identityProvider.LoginUrl)">@identityProvider.Name</button>*@
            </div>
        }
    </div>
</div>